import axios from './request'

export function login() {
  return axios({
    method: 'get',
    url: '/mock/login'
  })
}

export function getMenus() {
  return axios({
    method: 'get',
    url: '/mock/menus'
  })
}

export function getUserList(data) {
  return axios({
    method: 'post',
    url: '/mock/getUserList',
    data: data
  })
}

export function getRightsList() {
  return axios({
    method: 'get',
    url: '/mock/getRightsList'
  })
}

export function getRolesList() {
  return axios({
    method: 'get',
    url: '/mock/getRolesList'
  })
}

export function getAllrightsDict() {
  return axios({
    method: 'get',
    url: '/mock/getAllrightsDict'
  })
}

export function getALlRole() {
  return axios({
    method: 'get',
    url: '/mock/getALlRole'
  })
}
